/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.Airway;
import com.sasis.dao.AirwayDao;
import com.sasis.service.AirwayManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class AirwayManagerImpl extends BaseManager implements AirwayManager {
    private AirwayDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setAirwayDao(AirwayDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.AirwayManager#getAirways(com.sasis.model.Airway)
     */
    public List getAirways(final Airway airway) {
        return dao.getAirways(airway);
    }

    /**
     * @see com.sasis.service.AirwayManager#getAirway(String id)
     */
    public Airway getAirway(final String id) {
        return dao.getAirway(new Integer(id));
    }

    /**
     * @see com.sasis.service.AirwayManager#saveAirway(Airway airway)
     */
    public void saveAirway(Airway airway) {
        dao.saveAirway(airway);
    }

    /**
     * @see com.sasis.service.AirwayManager#removeAirway(String id)
     */
    public void removeAirway(Airway airway) {
        dao.removeAirway( airway);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
